package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Follow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 关注表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-29
 */
@Mapper
public interface FollowMapper extends BaseMapper<Follow> {
    int insertFollow(Follow follow);

    Follow selectByFollow(Follow follow);

    int delFollow(Follow follow);

    List<Integer> selectByUserFollowId(int userFollowId);

    Integer selectFollowCount(Integer userId);

    Integer selectFansCount(Integer userId);

    List<Integer> selectByUserId(int userId);

    List<Follow> selectAll();
}